import store from '@/store'

export default function getPageTitle (pageTitle) {
  let title = store.state.app?.systemInfo?.name || ''
  if (pageTitle) {
    return `${pageTitle} - ${title}`
  }
  return `${title}`
}
